package cn.wolfcode.trip.base.service;


import cn.wolfcode.trip.base.domain.StrategyAttention;
import cn.wolfcode.trip.base.domain.StrategyComment;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.StrategyCommentQueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 *@Discription  攻略评论管理

 *@Params

 *@Return

 *@Authod  黄照伟

 *@CreationTime  2019/3/11 1:46

 *@change

 */
public interface IStrategyCommentService {
    PageInfo strategyComment(QueryObject qo);

    PageInfo query(QueryObject qo);

    void saveOrUpdate(StrategyComment strategyComment);

    PageInfo queryForApp(StrategyCommentQueryObject qo);

    StrategyComment getStrategyCommentById(Long id);

    Long save(StrategyComment strategyComment);

    int getAssistCount(Long id);

    int getStrategyCommentCount(Long userId);

    Map<String, Object> getStrategyCommentsByUserId(Long id);

    void insertId(Long tagId, Long commentId);

    void resetCount(Long userId);

    List<StrategyComment> getAllStrategyComments();

    void insertCountRelation();

    StrategyAttention getCollect(StrategyAttention attention);

    boolean iselectCollect(StrategyAttention attention);

    void deleteCollect(StrategyAttention attention);


    List<StrategyComment> getUserIdByCommentId(Long commentId);

    int selectLikeCountByCommentId(StrategyAttention attention);
    //删除点赞
    void deleteChose(Long commentId, Long userId);
    //点赞
    void insertChose(Long commentId, Long userId);
}
